package com.wgy.designmode.action.observer.observer;

import com.wgy.designmode.action.observer.subject.Subject;

public abstract class Observer {

    protected Subject subject;

    public Observer(Subject subject) {
        this.subject = subject;
    }

    public abstract void update(); // 更新方法

}
